package com.hckjsec.common.config;

import org.json.JSONObject;

public class BdIdCardFrontResult {

    public BdIdCardFrontResult(){}

    public BdIdCardFrontResult(JSONObject result){
        if(!result.isNull(("公民身份号码"))){
            this.number = result.getJSONObject("公民身份号码").getString("words");
        }
        if(!result.isNull(("姓名"))){
            this.name = result.getJSONObject("姓名").getString("words");
        }
        if(!result.isNull(("民族"))){
            this.nation = result.getJSONObject("民族").getString("words");
        }
        if(!result.isNull(("住址"))){
            this.address = result.getJSONObject("住址").getString("words");
        }
        if(!result.isNull(("出生"))){
            this.born = result.getJSONObject("出生").getString("words");
        }
        if(!result.isNull(("性别"))){
            this.gender = result.getJSONObject("性别").getString("words");
        }
    }

    private String number;

    private String name;

    private String nation;

    private String address;

    private String born;

    private String gender;

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBorn() {
        return born;
    }

    public void setBorn(String born) {
        this.born = born;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }
}
